#include <iostream>
using namespace std;

void doubleInt(int (&a)[101]){
	int carry = 0;
	for(int i = 1; i <= 100; i++){
		a[i] = a[i] * 2 + carry;
		carry = a[i] / 10;
		a[i] = a[i] % 10;
	}
}

int main(){
	int a[101]={0};
	a[1]=1;
	int n;
	cin >> n;
	for(int i = 0; i <= n; i++)
		doubleInt(a);
	int carry = 0;
	for(int i = 1; i <= 100; i++){
		if(i == 1) a[i] -= 2;
		a[i] -= carry;
		if(a[i] < 0){
			a[i] += 10;
			carry = 1;
		} else carry = 0;
	}
	int i = 100;
	while(a[i] == 0 && i > 1) {
		i--;
	}
	for(;i >= 1; i--)
		cout << a[i];
	cout << endl;
}
